﻿using System;
using System.Collections.Generic;

namespace Transportr
{
    public class Metadata
    {
        // szuresnel kell majd! az elso getLines-szal feltoltjuk
        public struct CompanyMetadata
        {
            public int Id;
            public string Name;
            public int NumberOfLines;
        }

        public struct LineMetaData
        {
            public ServiceModel.VehicleType? Type;
        }

        public struct LineDetailMetaData
        {
            public int lnId;
        }

        public class Filter
        {
            public string Text = "";
        }

        public class SimpleFilter : Filter
        {
        }

        public class CompanyFilter : Filter
        {
            public CompanyMetadata Details;
        }

        public class LineFilter : Filter
        {
            public LineMetaData Details;
        }

        public class LineDetailFilter : Filter
        {
            public List<int> LineIds { get; set; }
            public LineDetailMetaData Details;
        }
    }
}
